package com.sairobo.live.api.hystrix;

import com.sairobo.live.api.UserService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;


@Component
@RequestMapping("/fallback")
public class UserFeignClientHystrixFallback implements UserService {

    @Override
    public void getOrderNo() {
        System.out.println("熔断");
    }

    @Override
    public void getUserByFeign() {
        System.out.println("熔断");
    }

    @Override
    public void getUserByFeignBatch() {
        System.out.println("熔断");
    }

    @Override
    public String getUserByHystrix() {
        System.out.println("熔断");
        return "熔断";
    }
}
